From 701ebd55c761450cef232717ee217fd4bb0bfb1a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 24 Feb 2021 09:09:57 -0500 Subject: [PATCH] applaunchcontext: Add property annotations Connect properties and getters with annotations. --- gdk/gdkapplaunchcontext.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gdk/gdkapplaunchcontext.c b/gdk/gdkapplaunchcontext.c index 30e9ee3bd0..66c9660be4 100644 --- a/gdk/gdkapplaunchcontext.c +++ b/gdk/gdkapplaunchcontext.c @@ -121,6 +121,11 @@ gdk_app_launch_context_class_init (GdkAppLaunchContextClass *klass) context_class->get_startup_notify_id = gdk_app_launch_context_get_startup_notify_id; context_class->launch_failed = gdk_app_launch_context_launch_failed; + /** + * GdkAppLaunchContext:display: (attributes org.gtk.Property.get=gdk_app_launch_context_get_display) + * + * The display that the `GdkAppLaunchContext` is on. + */ g_object_class_install_property (gobject_class, PROP_DISPLAY, g_param_spec_object ("display", P_("Display"), P_("Display"), GDK_TYPE_DISPLAY, @@ -166,7 +171,7 @@ gdk_app_launch_context_get_display_name (GAppLaunchContext *context, } /** - * gdk_app_launch_context_get_display: + * gdk_app_launch_context_get_display: (attributes org.gtk.Method.get_property=display) * @context: a `GdkAppLaunchContext` * * Gets the `GdkDisplay` that @context is for. -- 2.30.2